package com.mall.order.dal.persistence;

import com.mall.commons.tool.tkmapper.TkMapper;
import com.mall.order.dal.entitys.Order;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderMapper extends TkMapper<Order> {
    Long countAll();

    //List<Order> selectOrder(@Param("listStatus") List<Integer> listStatus, @Param("sort") String sort, @Param("size") Integer size,@Param("pageNum")Integer pageNum,@Param("userId")Long userId);
    List<Order> selectOrder(@Param("listStatus") List<Integer> listStatus, @Param("sort") String sort, @Param("userId") Long userId);

    void updateByStatus(@Param("i") int i, @Param("orderId") String orderId);


    //List<Order> selectOrder(@Param("sort") String sort, @Param("size") Integer size,@Param("pageNum")Integer pageNum,@Param("userId")Long userId);
}